<%-- 
功能：将2个、3个、4个中文文字进行对齐。
	注意这些文字必须要有如下样式：font-family:SimSun,Tahoma,Arial,Helvetica,sans-serif
 --%>
<%@ tag body-content="empty"%>
<%@ tag import="org.apache.commons.lang.StringUtils;" %>
<%@ attribute name="value" required="true"%>
<%
	String newValue = "";
	String sbcEmpty = "&nbsp;&nbsp;";
	String nbspEmpty = "&nbsp;";
	if(StringUtils.isNotEmpty(value)){
		char[] charArray = value.toCharArray();
		if(charArray.length == 2){
			newValue = charArray[0]+ sbcEmpty + sbcEmpty + charArray[1];
		}else if(charArray.length == 3){
			newValue = charArray[0]+ nbspEmpty + charArray[1] + nbspEmpty + charArray[2];
		}else{
			newValue = value;
		}
	}else{
		newValue = value;
	}
	out.print(newValue);	
%>